OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
has_attributes< T, typename Void< decltype(T::attributes::name[0])>::type > Struct Template Reference

has_attributes check if a type has defined an internal structure with attributes More...

Detailed Description

template<typename T>
struct has_attributes< T, typename Void< decltype(T::attributes::name[0])>::type >

has_attributes check if a type has defined an internal structure with attributes

Example

{
struct attributes
{
static const std::string name[2];
};
};
const std::string test_has_attributes::attributes::name[]={"attributes1","attributes2"};
{
};

return true if T::attributes::name[0] is a valid expression and produce a defined type

Definition at line 62 of file common.hpp.

#include <common.hpp>

+ Inheritance diagram for has_attributes< T, typename Void< decltype(T::attributes::name[0])>::type >:

The documentation for this struct was generated from the following file: